package org.dromara.basedata.domain.bo;

import org.dromara.basedata.domain.StandardManHour;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 标准工时维护业务对象 standard_man_hour
 *
 * @author Lion Li
 * @date 2025-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = StandardManHour.class, reverseConvertGenerate = false)
public class StandardManHourBo extends BaseEntity {

    /**
     * 工时ID
     */
    @NotNull(message = "工时ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 工序ID
     */
    @NotNull(message = "工序ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long stepId;

    /**
     * 工序名称
     */
    private String stepName;

    /**
     * 所属工艺（工艺名称）
     */
    private String processName;

    /**
     * 平均耗时(分钟)
     */
    private Long avgTime;

    /**
     * 最长耗时(分钟)
     */
    private Long maxTime;

    /**
     * 最少耗时(分钟)
     */
    private Long minTime;

    /**
     * 标准耗时(分钟)
     */
    @NotNull(message = "标准耗时(分钟)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long standardTime;

    /**
     * 实际最长耗时(分钟)
     */
    private Long actualMaxTime;

    /**
     * 实际最短耗时(分钟)
     */
    private Long actualMinTime;


}
